<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="../dist/kit/kit.js"></script>
</head>
<body>
    
<div class="list">

    <div class="item">
        <a class="detail">1111</a>
    </div>

    <div class="item">
        <a class="detail">2222</a>
    </div>
    
    <div class="item">
        <a class="detail">3333</a>
    </div>
    
</div>

<button type="button" class="add-event-btn">添加事件</button>
<button type="button" class="remove-event-btn">删除事件</button>
<button type="button" disabled="disabled" class="disable-btn">disabled</button>

</body>

<script>

x(".list").one("click", "a", function(e){
    console.log(e.target.innerText);
})

x(".add-event-btn").on("click", function(e){
    x(".list").on("click", "a", function(e){
        console.log(e.target.innerText);
    });
})

x(".remove-event-btn").on("click", function(e){
    x(".list").off("click"); 
})

</script>

</html>